<?php
abstract class Vs_Entity
{
	public function __construct( $atributos = null )
	{
	    if ($atributos instanceof Zend_Db_Table_Row){
			$atributos = $atributos->toArray();
		}
	    
		if (is_object($atributos)){
			$atributos = get_object_vars( $atributos );
		}
		
		if ( $atributos != null){
		
			foreach ($atributos as $k=>$v){
				$this->{$k} = $v;
			}	
		}
	}	
	
	public function __set( $key, $value )
	{	
		return;
	}
	
}